package com.lavida.project.system.salaryrule.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lavida.common.utils.security.ShiroUtils;
import com.lavida.project.system.user.domain.User;
import com.lavida.project.system.user.service.IUserService;

@Controller
@RequestMapping("system/salaryrule")
public class SalaryruleController {
	private String prefix = "system/salaryrule";
	 @Autowired
	 private IUserService userService;
	@RequestMapping()
	public String salaryrule(ModelMap mmap) {
		User user  = ShiroUtils.getSysUser();
		User user1 = userService.selectUserById(user.getUserId());
		mmap.put("user", user1);
		return prefix+"/salaryrule";
	}
}
